// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { IFairnessData, PredictionTypes } from "@responsible-ai/core-ui";

export const precomputedBinaryTwo: IFairnessData = {
  precomputedFeatureBins: [
    {
      binLabels: ["Group 0", "Group 1"],
      binVector: [
        0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1,
        0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1,
        1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1,
        0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1,
        1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1,
        1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0,
        1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0,
        1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1,
        0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1,
        1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1,
        1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0,
        0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1,
        1, 1, 0, 1, 0,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0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1,
        1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0
      ]
    }
  ],
  precomputedMetrics: [
    [
      {
        accuracy_score: {
          bins: [0.4578059071729958, 0.5494296577946768],
          global: 0.506
        },
        balanced_accuracy_score: {
          bins: [0.5031696021864561, 0.5007961783439491],
          global: 0.5094904295499648
        },
        fallout_rate: {
          bins: [0.6790540540540541, 0.75],
          global: 0.7086614173228347
        },
        miss_rate: {
          bins: [0.3146067415730337, 0.24840764331210186],
          global: 0.27235772357723576
        },
        overprediction: {
          bins: [0.4240506329113924, 0.30228136882129275],
          global: 0.36
        },
        precision_score: {
          bins: [0.37770897832817335, 0.5974683544303797],
          global: 0.4986072423398329
        },
        recall_score: {
          bins: [0.6853932584269663, 0.7515923566878981],
          global: 0.7276422764227642
        },
        selection_rate: {
          bins: [0.6814345991561181, 0.7509505703422054],
          global: 0.718
        },
        specificity_score: {
          bins: [0.32094594594594594, 0.25],
          global: 0.29133858267716534
        },
        underprediction: {
          bins: [0.11814345991561181, 0.1482889733840304],
          global: 0.134
        }
      }
    ]
  ],
  predictedY: [
    [
      0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1,
      1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0,
      1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1,
      1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1,
      0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0,
      1, 0, 1, 1, 1, 1,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